<template>
  <div class="bk_info" style="padding: 15px">
    <div class="title">
      填写报卡-{{ name }}
      <span style="float: right">
        <el-button size="small" @click="to_up">返回</el-button>
        <el-button size="small" type="primary" @click="btn_yes">保存</el-button>
        <el-button size="small" type="primary">保存并提交</el-button>
      </span>
    </div>
    <el-tabs>
      <el-tab-pane label="报卡信息">
        <p style="font-weight: 700; font-size: 16px; color: #000">报卡信息</p>
        <el-row>
          <el-col :span="12" style="padding: 5px 10px">
            <el-divider content-position="left">基本信息</el-divider>
            <el-form ref="form" label-width="160px">
              <el-form-item label="门诊号：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.mzh"
                ></el-input>
              </el-form-item>
              <el-form-item label="住院号：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.zyh"
                ></el-input>
              </el-form-item>
              <el-form-item label="姓名：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.pName"
                ></el-input>
              </el-form-item>
              <el-form-item label="性别：">
                <el-radio-group v-model="info.xb" size="small">
                  <el-radio-button label="男"></el-radio-button>
                  <el-radio-button label="女"></el-radio-button>
                  <el-radio-button label="未说明的性别"></el-radio-button>
                  <el-radio-button label="未知的性别"></el-radio-button>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="民族：">
                <!-- <el-select
                  v-model="info.value"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="测试数据" value="测试数据"> </el-option>
                </el-select> -->
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.minzu"
                ></el-input>
              </el-form-item>
              <el-form-item label="国籍：">
                <el-select
                  v-model="info.guoji"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="中国" value="中国"> </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="证件类别：">
                <el-select
                  v-model="info.zjlb"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="身份证" value="身份证"> </el-option>
                  <el-option label="出生证" value="出生证"> </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="证件号码：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.idCard"
                ></el-input>
              </el-form-item>
              <el-form-item label="出生日期：">
                <el-date-picker
                  v-model="info.csrq"
                  size="small"
                  type="date"
                  placeholder="选择日期"
                >
                </el-date-picker>
              </el-form-item>
              <el-form-item label="本人电话：">
                <el-input
                  placeholder="请输入内容"
                  size="small"
                  style="width: 300px"
                  v-model="info.brdh"
                >
                  <template slot="prepend">+86</template>
                </el-input>
              </el-form-item>
              <el-form-item label="医保类型：">
                <el-select
                  v-model="info.yb_type"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="城乡居民医保" value="城乡居民医保"> </el-option>
                  <el-option label="职工医保" value="职工医保"> </el-option>
                  <el-option label="商业保险" value="商业保险"> </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="先住址居住6个月以上">
                <el-radio-group v-model="info.jz_6" size="small">
                  <el-radio-button label="是"></el-radio-button>
                  <el-radio-button label="否"></el-radio-button>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="现住地址：">
                <el-input
                  style="width: 500px"
                  size="small"
                  v-model="info.xzdz"
                ></el-input>
              </el-form-item>
              <el-form-item label="户籍地址：">
                <el-input
                  style="width: 500px"
                  size="small"
                  v-model="info.hjdz"
                ></el-input>
              </el-form-item>
              <el-form-item label="文化程度：">
                <!-- <el-select
                  v-model="info.value"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="测试数据" value="测试数据"> </el-option>
                </el-select> -->
                <el-input
                  style="width: 500px"
                  size="small"
                  v-model="info.whcd"
                ></el-input>
              </el-form-item>
              <el-form-item label="工作单位：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.gzdw"
                ></el-input>
              </el-form-item>
              <el-form-item label="联系人：">
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.lxr"
                ></el-input>
              </el-form-item>
              <el-form-item label="联系人电话：">
                <el-input
                  placeholder="请输入内容"
                  size="small"
                  style="width: 300px"
                  v-model="info.lxrdh"
                >
                  <template slot="prepend">+86</template>
                </el-input>
              </el-form-item>
              <el-form-item label="与患者关系：">
                <!-- <el-select
                  v-model="info.yhzgx"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="测试数据" value="测试数据"> </el-option>
                </el-select> -->
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.yhzgx"
                ></el-input>
              </el-form-item>
              <el-form-item label="备注：">
                <el-input
                  type="textarea"
                  :autosize="{ minRows: 4, maxRows: 6 }"
                  placeholder="请输入内容"
                  v-model="info.beizhu"
                  size="small"
                  style="width: 500px"
                >
                </el-input>
              </el-form-item>
              <el-form-item label="婚姻状况">
                <el-radio-group v-model="info.hyzk" size="small">
                  <el-radio-button label="未婚"></el-radio-button>
                  <el-radio-button label="已婚/再婚/同居"></el-radio-button>
                  <el-radio-button label="分居"></el-radio-button>
                  <el-radio-button label="离异"></el-radio-button>
                  <el-radio-button label="丧偶"></el-radio-button>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="职业：">
                <!-- <el-select
                  v-model="info.value"
                  style="width: 300px"
                  size="small"
                  placeholder="请选择"
                >
                  <el-option label="测试数据" value="测试数据"> </el-option>
                </el-select> -->
                <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.zhiye"
                ></el-input>
              </el-form-item>
            </el-form>
          </el-col>
          <el-col :span="12" style="padding: 5px 10px">
            <el-divider content-position="left"
              >居民健康档案参考信息</el-divider
            >
            <div class="ckxx">
              <p>
                <span
                  style="
                    display: inline-block;
                    width: 15%;
                    font-size: 20px;
                    font-weight: 900;
                    color: #000;
                  "
                  >测试</span
                >
                女 22岁 不详不便分类的其他从业人员
              </p>
              <p>
                <span style="display: inline-block; width: 15%">出生日期</span>
                2001-01-21
              </p>
              <p>
                <span style="display: inline-block; width: 15%">证件类型</span>
                无证件
              </p>
              <p>
                <span style="display: inline-block; width: 15%">证件号码</span>
                1
              </p>
              <p>
                <span style="display: inline-block; width: 15%">本人电话</span>
                18608819570
              </p>
              <p>
                <span style="display: inline-block; width: 15%"
                  >联系人姓名</span
                >
                1
              </p>
              <p>
                <span style="display: inline-block; width: 15%"
                  >联系人电话</span
                >
                18608819570
              </p>
              <p>
                <span style="display: inline-block; width: 15%">常住类型</span>
                -
              </p>
              <p>
                <span style="display: inline-block; width: 15%">民族</span>
                苗族
              </p>
              <p>
                <span style="display: inline-block; width: 15%">户籍地址</span>
                云南省/普洱市/澜沧拉祜族自治县/糯扎渡镇/谦迈村民委员会/芦洼组
              </p>
              <p>
                <span style="display: inline-block; width: 15%">现住址</span>
                云南省/西双版纳傣族自治州/勐海县/勐海镇/象山社区居民委员会/1
              </p>
              <p>
                <span style="display: inline-block; width: 15%">工作单位</span>
                -
              </p>
            </div>
          </el-col>
        </el-row>
        <div>
          <el-form label-width="160px">
            <el-divider content-position="left">患病信息</el-divider>
            <div class="_tag" style="margin-bottom: 5px">
              <div
                style="display: inline-block; width: 4%; vertical-align: top"
              >
                <i
                  style="font-size: 30px; color: orangered"
                  class="el-icon-warning-outline"
                ></i>
              </div>
              <div style="display: inline-block; width: 95%">
                <p style="font-size: 15px">填写注意</p>
                1.相同诊断日期的诊断结果，可在下面多选，多次点击同一个选项，将按【首要诊断】、【次要诊断】、【未勾选】的顺序切换诊断类型
                <br />
                2.若有多个不同日期、与死亡有关/无关的诊断，请分开填报<br />
                3.同一个人的ICD诊断结果只能上报一次
              </div>
            </div>
            <el-form-item label="诊断时间：">
              <el-date-picker
                v-model="info.zdsj"
                size="small"
                type="date"
                placeholder="选择日期"
              >
              </el-date-picker>
            </el-form-item>
            <el-form-item label="诊断结果（可多选）：">
              （图例说明｜<span class="choose"></span> 未勾选
              <span class="choose first">首</span>首要诊断
              <span class="choose ci">次</span>次要诊断）点击选项可切换状态
            </el-form-item>
            <el-form-item label="慢性肺源性心脏病：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.慢性肺源性心脏病.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性肺源性心脏病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.慢性肺源性心脏病.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性肺源性心脏病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="慢性支气管炎：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.慢性支气管炎.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性支气管炎')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.慢性支气管炎.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性支气管炎')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="肺气肿：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.肺气肿.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '肺气肿')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.肺气肿.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '肺气肿')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="慢性阻塞性肺疾病：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.慢性阻塞性肺疾病.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性阻塞性肺疾病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.慢性阻塞性肺疾病.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '慢性阻塞性肺疾病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="哮喘：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.哮喘.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '哮喘')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.哮喘.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '哮喘')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="支气管扩张症：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.支气管扩张症.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '支气管扩张症')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.支气管扩张症.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '支气管扩张症')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="尘肺：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.尘肺.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '尘肺')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.尘肺.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '尘肺')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="间质性肺疾病：">
              <table class="_table" border>
                <tr>
                  <th>ICD10</th>
                  <th>医保ICD</th>
                </tr>
                <tr style="height: 200px; overflow: auto; vertical-align: top">
                  <td>
                    <p
                      v-for="item in info.间质性肺疾病.ICD10"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '间质性肺疾病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                  <td>
                    <p
                      v-for="item in info.间质性肺疾病.医保ICD"
                      class="p_item"
                      :key="item.id"
                    >
                      <span
                        :class="
                          item.ok == 1
                            ? 'choose'
                            : item.ok == 2
                            ? 'choose first'
                            : 'choose ci'
                        "
                        @click="choose_change(item, '间质性肺疾病')"
                        >{{
                          item.ok == 1 ? "" : item.ok == 2 ? "首" : "次"
                        }}</span
                      >
                      {{ item.name }}
                    </p>
                  </td>
                </tr>
              </table>
            </el-form-item>
            <el-form-item label="是否有下列合并症（可多选）：">
              <el-checkbox-group v-model="info.hbzz">
                <el-checkbox label="无并发症及合并症"></el-checkbox><br />
                <el-checkbox label="缺血性心脏病"></el-checkbox><br />
                <el-checkbox label="心衰"></el-checkbox><br />
                <el-checkbox label="房颤"></el-checkbox><br />
                <el-checkbox label="外周性血管疾病"></el-checkbox><br />
                <el-checkbox label="高血压"></el-checkbox><br />
                <el-checkbox label="骨质疏松"></el-checkbox><br />
                <el-checkbox label="骨骼肌肉障碍"></el-checkbox><br />
                <el-checkbox label="焦虑抑郁"></el-checkbox><br />
                <el-checkbox label="肺癌"></el-checkbox><br />
                <el-checkbox label="代谢综合征、糖尿病"></el-checkbox>
                <el-checkbox label="感染"></el-checkbox>
                <el-checkbox label="胃食管反流"></el-checkbox>
                <el-checkbox label="其他"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="诊断依据（可多选）：">
              <el-checkbox-group v-model="info.zdyj">
                <el-checkbox label="临床症状"></el-checkbox><br />
                <el-checkbox label="肺功能检查"></el-checkbox><br />
                <el-checkbox label="胸部X线检查"></el-checkbox><br />
                <el-checkbox label="胸部CT检查"></el-checkbox><br />
                <el-checkbox label="血气分析"></el-checkbox><br />
                <el-checkbox
                  label="其他实验室检查：如血常规、痰培养等"
                ></el-checkbox
                ><br />
                <el-checkbox label="不详"></el-checkbox><br />
                <el-checkbox label="死亡补发病"></el-checkbox><br />
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="诊断来源：">
              <el-radio-group v-model="info.zdly_sheng">
                <el-radio :label="3">本省</el-radio>
                <el-radio :label="6">外省</el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="诊断机构名称：">
              <!-- <el-select
                v-model="info.zdjg"
                style="width: 300px"
                size="small"
                placeholder="请选择"
              >
                <el-option label="测试数据" value="测试数据"> </el-option>
              </el-select> -->
              <el-input
                  style="width: 300px"
                  size="small"
                  v-model="info.zdjg"
                ></el-input>
            </el-form-item>
            <el-form-item label="诊断机构级别：">
              <el-radio-group v-model="info.zdjgjb" size="small">
                <el-radio-button label="一级"></el-radio-button>
                <el-radio-button label="二级"></el-radio-button>
                <el-radio-button label="三级"></el-radio-button>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="诊断来源：">
              <el-radio-group v-model="info.zdly">
                <el-radio label="是">是</el-radio>
                <el-radio label="否">否</el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="报卡单位：">
              <!-- <el-select
                v-model="info.value"
                style="width: 300px"
                size="small"
                placeholder="请选择"
              >
                <el-option label="测试数据" value="测试数据"> </el-option>
              </el-select> -->
              <el-input
                placeholder="请输入内容"
                size="small"
                style="width: 300px"
                v-model="info.bkdw"
              >
              </el-input>
            </el-form-item>
            <el-form-item label="报告医生：">
              <el-input
                placeholder="请输入内容"
                size="small"
                style="width: 500px"
                v-model="info.bkys"
              >
              </el-input>
            </el-form-item>
            <el-form-item label="报告日期：">
              <el-date-picker
                v-model="info.bgrq"
                size="small"
                type="date"
                placeholder="选择日期"
              >
              </el-date-picker>
            </el-form-item>
          </el-form>
        </div>
      </el-tab-pane>
      <el-tab-pane label="操作记录">
        <el-timeline>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp=""
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">暂无记录</p>
            </el-card>
          </el-timeline-item>
        </el-timeline>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
    
    <script>
export default {
  data() {
    return {
      name: "",
      info: {
        mzh:'', // 门诊号
        zyh:'', // 住院号
        pName:'', // 姓名
        xb:'', // 性别
        minzu:'', // 民族
        guoji:'中国', // 国籍
        zjlb:'身份证', // 证件类别
        idCard:'', // 证件号码
        csrq:'', // 出生日期
        brdh:'', // 本人电话
        yb_type:'', // 医保类型
        jz_6:'', // 先住址居住6个月以上
        xzdz:'', // 现住地址
        hjdz:'', // 户籍地址
        whcd:'', // 文化程度
        gzdw:'', // 工作单位
        lxr:'', // 联系人
        lxrdh:'', // 联系人电话
        yhzgx:'', // 与患者关系
        beizhu:'', // 备注
        hyzk:'', // 婚姻状
        zhiye:'', // 职业
        // 患病信息
        zdsj:'', // 诊断时间
        hbzz:[], // 是否有下列合并症
        zdyj:[], // 诊断依据
        zdly_sheng:'', // 诊断来源_省份
        zdjg:'', // 诊断机构名称
        zdjgjb:'',// 诊断机构级别
        zdly:'', // 诊断来源
        bkdw:'',// 报卡单位
        bkys:'',// 报告医生
        bgrq:'', // 报告日期
        慢性支气管炎: {
          ICD10: [
            {
              id: "a1",
              name: "J40  支气管炎，未特指为急性或慢性",
              ok: 1,
            },
            {
              id: "a2",
              name: "J41  单纯性和粘液化脓性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a3",
              name: "J41.0  单纯性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a4",
              name: "J41.1  粘液化脓性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a5",
              name: "J41.8  混合的单纯性和粘液脓性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a6",
              name: "J42  未特指的慢性支气管炎",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "a7",
              name: "J40.x00  支气管炎",
              ok: 1,
            },
            {
              id: "a8",
              name: "J40.x00x002  纤维素性支气管炎",
              ok: 1,
            },
            {
              id: "a9",
              name: "J40.x01  气管支气管炎",
              ok: 1,
            },
            {
              id: "a10",
              name: "J41.000  单纯性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a11",
              name: "J41.100  黏液脓性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a12",
              name: "J41.800  混合的单纯性和黏液脓性慢性支气管炎",
              ok: 1,
            },
            {
              id: "a13",
              name: "J42.x00  慢性支气管炎",
              ok: 1,
            },
            {
              id: "a14",
              name: "J42.x00x001  慢性气管炎",
              ok: 1,
            },
            {
              id: "a15",
              name: "J42.x00x003  慢性气管支气管炎",
              ok: 1,
            },
            {
              id: "a16",
              name: "J42.x00x004  慢性支气管炎急性加重期",
              ok: 1,
            },
            {
              id: "a17",
              name: "J42.x00x005  慢性支气管炎临床缓解期",
              ok: 1,
            },
            {
              id: "a18",
              name: "J42.x00x006  慢性支气管炎慢性迁延期",
              ok: 1,
            },
            {
              id: "a19",
              name: "J42.x01  弥漫性泛细支气管炎",
              ok: 1,
            },
          ],
        },
        慢性肺源性心脏病: {
          ICD10: [
            {
              id: "b1",
              name: "I27.9  慢性肺源性心脏病",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "b2",
              name: "I27.900x002  慢性肺源性心脏病",
              ok: 1,
            },
          ],
        },
        肺气肿: {
          ICD10: [
            {
              id: "c1",
              name: "J43  肺气肿",
              ok: 1,
            },
            {
              id: "c2",
              name: "J43.0  麦克劳德综合征",
              ok: 1,
            },
            {
              id: "c3",
              name: "J43.1  全叶性肺气肿",
              ok: 1,
            },
            {
              id: "c4",
              name: "J43.2  中心叶性肺气肿",
              ok: 1,
            },
            {
              id: "c5",
              name: "J43.8  其他肺气肿",
              ok: 1,
            },
            {
              id: "c6",
              name: "J43.9  肺气肿，未特指",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "c7",
              name: "J43.000  麦克劳德综合征",
              ok: 1,
            },
            {
              id: "c8",
              name: "J43.000x003  透明肺",
              ok: 1,
            },
            {
              id: "c9",
              name: "J43.001  单侧肺气肿",
              ok: 1,
            },
            {
              id: "c91",
              name: "J43.100  全叶肺气肿",
              ok: 1,
            },
            {
              id: "c10",
              name: "J43.101  全腺泡性肺气肿",
              ok: 1,
            },
            {
              id: "c11",
              name: "J43.200  小叶中心性肺气肿",
              ok: 1,
            },
            {
              id: "c12",
              name: "J43.800x001  瘢痕性肺气肿",
              ok: 1,
            },
            {
              id: "c13",
              name: "J43.900  肺气肿",
              ok: 1,
            },
            {
              id: "c14",
              name: "J43.900x001  大疱性肺气肿",
              ok: 1,
            },
            {
              id: "c15",
              name: "J43.901  肺大疱",
              ok: 1,
            },
            {
              id: "c16",
              name: "J43.902  肺大疱破裂",
              ok: 1,
            },
            {
              id: "c17",
              name: "J43.903  老年性肺气肿",
              ok: 1,
            },
            {
              id: "c18",
              name: "J43.904  阻塞性肺气肿",
              ok: 1,
            },
          ],
        },
        慢性阻塞性肺疾病: {
          ICD10: [
            {
              id: "d1",
              name: "J44  其他慢性阻塞性肺病，包括慢性阻塞性哮喘",
              ok: 1,
            },
            {
              id: "d2",
              name: "J44.0  慢性阻塞性肺病，伴有急性下呼吸道感染",
              ok: 1,
            },
            {
              id: "d3",
              name: "J44.1  慢性阻塞性肺病伴有急性加重，未特指",
              ok: 1,
            },
            {
              id: "d4",
              name: "J44.8  其他特指的慢性阻塞性肺病，包括慢性喘息性支气管炎、慢性阻塞性支气管炎、慢性气肿性支气管炎",
              ok: 1,
            },
            {
              id: "d5",
              name: "J44.9  慢性阻塞性肺病，未特指",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "d6",
              name: "J44.000  慢性阻塞性肺病伴有急性下呼吸道感染",
              ok: 1,
            },
            {
              id: "d7",
              name: "J44.100  慢性阻塞性肺病伴有急性加重",
              ok: 1,
            },
            {
              id: "d8",
              name: "J44.800x001  闭塞性细支气管炎",
              ok: 1,
            },
            {
              id: "d9",
              name: "J44.801  慢性支气管炎伴肺气肿",
              ok: 1,
            },
            {
              id: "d10",
              name: "J44.802  慢性喘息性支气管炎",
              ok: 1,
            },
            {
              id: "d11",
              name: "J44.803  慢性气肿性支气管炎",
              ok: 1,
            },
            {
              id: "d12",
              name: "J44.805  慢性细支气管炎",
              ok: 1,
            },
            {
              id: "d13",
              name: "J44.806  慢性阻塞性支气管炎",
              ok: 1,
            },
            {
              id: "d14",
              name: "J44.807  哮喘-慢阻肺重叠综合征",
              ok: 1,
            },
            {
              id: "d15",
              name: "J44.900  慢性阻塞性肺病",
              ok: 1,
            },
            {
              id: "d16",
              name: "J44.900x002  慢性阻塞性肺疾病I级",
              ok: 1,
            },
            {
              id: "d17",
              name: "J44.900x003  慢性阻塞性肺疾病II级",
              ok: 1,
            },
            {
              id: "d18",
              name: "J44.900x004  慢性阻塞性肺疾病III级",
              ok: 1,
            },
            {
              id: "d19",
              name: "J44.900x005  慢性阻塞性肺疾病IV级",
              ok: 1,
            },
          ],
        },
        哮喘: {
          ICD10: [
            {
              id: "e1",
              name: "J45  哮喘",
              ok: 1,
            },
            {
              id: "e2",
              name: "J45.0  主要由于变应性哮喘",
              ok: 1,
            },
            {
              id: "e3",
              name: "J45.1  非变应性哮喘",
              ok: 1,
            },
            {
              id: "e4",
              name: "J45.8  混合性哮喘",
              ok: 1,
            },
            {
              id: "e5",
              name: "J45.9  哮喘，未特指",
              ok: 1,
            },
            {
              id: "e6",
              name: "J46  哮喘持续状态",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "e7",
              name: "J45.000  主要为变应性哮喘",
              ok: 1,
            },
            {
              id: "e8",
              name: "J45.000x001  药物性支气管哮喘",
              ok: 1,
            },
            {
              id: "e9",
              name: "J45.000x003  职业性支气管哮喘",
              ok: 1,
            },
            {
              id: "e10",
              name: "J45.002  阿司匹林哮喘",
              ok: 1,
            },
            {
              id: "e11",
              name: "J45.003  变态反应性支气管哮喘",
              ok: 1,
            },
            {
              id: "e12",
              name: "J45.005  咳嗽变异性哮喘",
              ok: 1,
            },
            {
              id: "e13",
              name: "J45.006  儿童期哮喘",
              ok: 1,
            },
            {
              id: "e14",
              name: "J45.007  外源性支气管哮喘",
              ok: 1,
            },
            {
              id: "e15",
              name: "J45.100  非变应性哮喘",
              ok: 1,
            },
            {
              id: "e16",
              name: "J45.100x002  月经期支气管哮喘",
              ok: 1,
            },
            {
              id: "e17",
              name: "J45.100x003  运动性支气管哮喘",
              ok: 1,
            },
            {
              id: "e18",
              name: "J45.800  混合性哮喘",
              ok: 1,
            },
            {
              id: "e19",
              name: "J45.900  哮喘",
              ok: 1,
            },
            {
              id: "e20",
              name: "J45.900x001  支气管哮喘",
              ok: 1,
            },
            {
              id: "e21",
              name: "J45.900x002  难治性支气管哮喘",
              ok: 1,
            },
            {
              id: "e22",
              name: "J45.900x011  支气管哮喘（完全控制）",
              ok: 1,
            },
            {
              id: "e23",
              name: "J45.900x012  支气管哮喘（部分控制）",
              ok: 1,
            },
            {
              id: "e24",
              name: "J45.900x013  支气管哮喘（未控制）",
              ok: 1,
            },
            {
              id: "e25",
              name: "J45.900x021  支气管哮喘（急性发作期）",
              ok: 1,
            },
            {
              id: "e26",
              name: "J45.900x023  支气管哮喘（临床缓解期）",
              ok: 1,
            },
            {
              id: "e27",
              name: "J45.900x031  支气管哮喘（间歇发作）",
              ok: 1,
            },
            {
              id: "e28",
              name: "J45.900x041  哮喘性肺炎",
              ok: 1,
            },
            {
              id: "e29",
              name: "J45.901  哮喘性支气管炎",
              ok: 1,
            },
            {
              id: "e30",
              name: "J45.902  迟发型哮喘",
              ok: 1,
            },
            {
              id: "e31",
              name: "J45.903  支气管哮喘，非危重",
              ok: 1,
            },
            {
              id: "e32",
              name: "J46.x00x002  支气管哮喘急性发作（轻度）",
              ok: 1,
            },
            {
              id: "e33",
              name: "J46.x00x003  支气管哮喘急性发作（中度）",
              ok: 1,
            },
            {
              id: "e34",
              name: "J46.x00x006  闭锁肺综合征",
              ok: 1,
            },
            {
              id: "e35",
              name: "J46.x00x008  支气管哮喘（慢性持续期）",
              ok: 1,
            },
            {
              id: "e36",
              name: "J46.x00x009  支气管哮喘（轻度持续）",
              ok: 1,
            },
            {
              id: "e37",
              name: "J46.x00x010  支气管哮喘（中度持续）",
              ok: 1,
            },
            {
              id: "e38",
              name: "J46.x01  支气管哮喘，重度",
              ok: 1,
            },
            {
              id: "e39",
              name: "J46.x02  支气管哮喘，危重",
              ok: 1,
            },
          ],
        },
        支气管扩张症: {
          ICD10: [
            {
              id: "f1",
              name: "J47  支气管扩张症",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "f2",
              name: "J47.x00  支气管扩张（症）",
              ok: 1,
            },
            {
              id: "f3",
              name: "J47.x01  支气管扩张伴咯血",
              ok: 1,
            },
            {
              id: "f4",
              name: "J47.x02  细支气管扩张",
              ok: 1,
            },
            {
              id: "f5",
              name: "J47.x03  支气管扩张伴感染",
              ok: 1,
            },
          ],
        },
        尘肺: {
          ICD10: [
            {
              id: "j1",
              name: "J60  煤炭工尘肺",
              ok: 1,
            },
            {
              id: "j2",
              name: "J61  由于石棉和其他矿物纤维引起的尘肺",
              ok: 1,
            },
            {
              id: "j3",
              name: "J62  由于含硅［矽］粉尘引起的尘肺",
              ok: 1,
            },
            {
              id: "j4",
              name: "J62.0  滑石粉尘肺",
              ok: 1,
            },
            {
              id: "j5",
              name: "J62.8  由于其他含硅［矽］粉尘引起的尘肺",
              ok: 1,
            },
            {
              id: "j6",
              name: "J63  由于其他无机粉尘引起的尘肺",
              ok: 1,
            },
            {
              id: "j7",
              name: "J63.0  矾土肺（肺的）",
              ok: 1,
            },
            {
              id: "j8",
              name: "J63.1  铝土纤维化（肺的）",
              ok: 1,
            },
            {
              id: "j9",
              name: "J63.2  铍中毒",
              ok: 1,
            },
            {
              id: "j10",
              name: "J63.3  石墨纤维化（肺的）",
              ok: 1,
            },
            {
              id: "j11",
              name: "J63.3  石墨纤维化（肺的）",
              ok: 1,
            },
            {
              id: "j12",
              name: "J63.5  锡尘肺",
              ok: 1,
            },
            {
              id: "j13",
              name: "J63.8  由于其他特指的无机粉尘引起的尘肺",
              ok: 1,
            },
            {
              id: "j14",
              name: "J64  未特指的尘肺",
              ok: 1,
            },
            {
              id: "j141",
              name: "J65  与结核病有关的尘肺",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "j15",
              name: "J60.x00  煤炭工肺尘埃沉着病",
              ok: 1,
            },
            {
              id: "j16",
              name: "J60.x00x002  碳末沉着病[炭肺]",
              ok: 1,
            },
            {
              id: "j17",
              name: "J60.x00x003  煤工尘肺壹期",
              ok: 1,
            },
            {
              id: "j18",
              name: "J60.x00x004  煤工尘肺贰期",
              ok: 1,
            },
            {
              id: "j19",
              name: "J60.x00x005  煤工尘肺叁期",
              ok: 1,
            },
            {
              id: "j20",
              name: "J60.x01  煤矽肺",
              ok: 1,
            },
            {
              id: "j21",
              name: "J61.x00x001  石棉肺壹期",
              ok: 1,
            },
            {
              id: "j22",
              name: "J61.x00x002  石棉肺贰期",
              ok: 1,
            },
            {
              id: "j23",
              name: "J61.x00x003  石棉肺叁期",
              ok: 1,
            },
            {
              id: "j24",
              name: "J61.x01  石棉肺",
              ok: 1,
            },
            {
              id: "j25",
              name: "J62.000x001  滑石尘肺壹期",
              ok: 1,
            },
            {
              id: "j26",
              name: "J62.000x002  滑石尘肺贰期",
              ok: 1,
            },
            {
              id: "j27",
              name: "J62.000x003  滑石尘肺叁期",
              ok: 1,
            },
            {
              id: "j28",
              name: "J62.001  滑石粉尘肺",
              ok: 1,
            },
            {
              id: "j29",
              name: "J62.800x002  矽肺性肺纤维化",
              ok: 1,
            },
            {
              id: "j30",
              name: "J62.800x003  矽肺[硅肺]I期",
              ok: 1,
            },
            {
              id: "j31",
              name: "J62.800x004  矽肺[硅肺]II期",
              ok: 1,
            },
            {
              id: "j32",
              name: "J62.800x005  矽肺[硅肺]III期",
              ok: 1,
            },
            {
              id: "j33",
              name: "J62.800x006  陶工尘肺壹期",
              ok: 1,
            },
            {
              id: "j34",
              name: "J62.800x007  陶工尘肺贰期",
              ok: 1,
            },
            {
              id: "j35",
              name: "J62.800x008  陶工尘肺叁期",
              ok: 1,
            },
            {
              id: "j36",
              name: "J62.801  陶工尘肺",
              ok: 1,
            },
            {
              id: "j37",
              name: "J62.802  硅沉着病",
              ok: 1,
            },
            {
              id: "j38",
              name: "J62.803  矽肺",
              ok: 1,
            },
            {
              id: "j39",
              name: "J62.804  石匠哮喘",
              ok: 1,
            },
            {
              id: "j40",
              name: "J63.000  矾土肺（肺的）",
              ok: 1,
            },
            {
              id: "j41",
              name: "J63.000x001  铝尘肺壹期",
              ok: 1,
            },
            {
              id: "j42",
              name: "J63.000x002  铝尘肺贰期",
              ok: 1,
            },
            {
              id: "j43",
              name: "J63.000x003  铝尘肺叁期",
              ok: 1,
            },
            {
              id: "j44",
              name: "J63.001  铝尘肺",
              ok: 1,
            },
            {
              id: "j45",
              name: "J63.100  铁矾土纤维化（肺的）",
              ok: 1,
            },
            {
              id: "j46",
              name: "J63.200  铍中毒",
              ok: 1,
            },
            {
              id: "j47",
              name: "J63.201  铍肺",
              ok: 1,
            },
            {
              id: "j48",
              name: "J63.300x001  石墨尘肺壹期",
              ok: 1,
            },
            {
              id: "j49",
              name: "J63.300x002  石墨尘肺贰期",
              ok: 1,
            },
            {
              id: "j50",
              name: "J63.300x003  石墨尘肺叁期",
              ok: 1,
            },
            {
              id: "j51",
              name: "J63.301  石墨尘肺",
              ok: 1,
            },
            {
              id: "j52",
              name: "J63.400  肺铁末沉着病",
              ok: 1,
            },
            {
              id: "j53",
              name: "J63.500  锡沉着病",
              ok: 1,
            },
            {
              id: "j54",
              name: "J63.800  无机粉尘引起的肺尘埃沉着病，其他特指的",
              ok: 1,
            },
            {
              id: "j55",
              name: "J63.800x001  铸工尘肺",
              ok: 1,
            },
            {
              id: "j56",
              name: "J63.800x003  电焊工尘肺",
              ok: 1,
            },
            {
              id: "j57",
              name: "J63.800x005  云母尘肺",
              ok: 1,
            },
            {
              id: "j58",
              name: "J63.800x009  锑尘肺",
              ok: 1,
            },
            {
              id: "j59",
              name: "J63.800x010  钡尘肺",
              ok: 1,
            },
            {
              id: "j60",
              name: "J63.800x011  硬金属肺病",
              ok: 1,
            },
            {
              id: "j61",
              name: "J63.800x012  水泥尘肺壹期",
              ok: 1,
            },
            {
              id: "j62",
              name: "J63.800x013  水泥尘肺贰期",
              ok: 1,
            },
            {
              id: "j63",
              name: "J63.800x014  水泥尘肺叁期",
              ok: 1,
            },
            {
              id: "j64",
              name: "J63.800x015  铸工尘肺壹期",
              ok: 1,
            },
            {
              id: "j65",
              name: "J63.800x016  铸工尘肺贰期",
              ok: 1,
            },
            {
              id: "j66",
              name: "J63.800x017  铸工尘肺叁期",
              ok: 1,
            },
            {
              id: "j67",
              name: "J63.800x018  电焊工尘肺壹期",
              ok: 1,
            },
            {
              id: "j68",
              name: "J63.800x019  电焊工尘肺贰期",
              ok: 1,
            },
            {
              id: "j69",
              name: "J63.800x020  电焊工尘肺叁期",
              ok: 1,
            },
            {
              id: "j70",
              name: "J63.800x021  云母尘肺壹期",
              ok: 1,
            },
            {
              id: "j71",
              name: "J63.800x022  云母尘肺贰期",
              ok: 1,
            },
            {
              id: "j72",
              name: "J63.800x023  云母尘肺叁期",
              ok: 1,
            },
            {
              id: "j73",
              name: "J63.800x024  炭黑尘肺壹期",
              ok: 1,
            },
            {
              id: "j74",
              name: "J63.800x025  炭黑尘肺贰期",
              ok: 1,
            },
            {
              id: "j75",
              name: "J63.800x026  炭黑尘肺叁期",
              ok: 1,
            },
            {
              id: "j76",
              name: "J63.801  磨工尘肺",
              ok: 1,
            },
            {
              id: "j77",
              name: "J63.802  水泥尘肺",
              ok: 1,
            },
            {
              id: "j78",
              name: "J63.803  炭黑尘肺",
              ok: 1,
            },
            {
              id: "j79",
              name: "J64.x00  肺尘埃沉着病",
              ok: 1,
            },
            {
              id: "j80",
              name: "J65.x00  与结核有关的肺尘埃沉着病",
              ok: 1,
            },
          ],
        },
        间质性肺疾病: {
          ICD10: [
            {
              id: "k1",
              name: "J70.3  慢性药物性间质性肺疾患",
              ok: 1,
            },
            {
              id: "k2",
              name: "J84.1  其他间质性肺疾病，伴有纤维化",
              ok: 1,
            },
            {
              id: "k3",
              name: "J84.8  间质性肺疾病，其他特指的",
              ok: 1,
            },
            {
              id: "k4",
              name: "J84.9  间质性肺病，未特指",
              ok: 1,
            },
          ],
          医保ICD: [
            {
              id: "k5",
              name: "J70.300  慢性药物性间质性肺疾患",
              ok: 1,
            },
            {
              id: "k6",
              name: "J84.100x006  致纤维化肺泡炎",
              ok: 1,
            },
            {
              id: "k7",
              name: "J84.100x007  继发性肺间质纤维化",
              ok: 1,
            },
            {
              id: "k8",
              name: "J84.100x008  弥漫性肺间质纤维化",
              ok: 1,
            },
            {
              id: "k9",
              name: "J84.101  肺间质纤维化",
              ok: 1,
            },
            {
              id: "k10",
              name: "J84.102  肺肉芽肿",
              ok: 1,
            },
            {
              id: "k11",
              name: "J84.103  哈曼-里奇综合征",
              ok: 1,
            },
            {
              id: "k12",
              name: "J84.104  特发性肺间质纤维化",
              ok: 1,
            },
            {
              id: "k13",
              name: "J84.105  间质性纤维化性肺泡炎",
              ok: 1,
            },
            {
              id: "k14",
              name: "J84.108  机化性肺炎",
              ok: 1,
            },
            {
              id: "k15",
              name: "J84.109  炎症后肺纤维化",
              ok: 1,
            },
            {
              id: "k16",
              name: "J84.110  肺硬化",
              ok: 1,
            },
            {
              id: "k17",
              name: "J84.800x003  寻常型间质性肺炎",
              ok: 1,
            },
            {
              id: "k18",
              name: "J84.800x004  隐源性机化性肺炎",
              ok: 1,
            },
            {
              id: "k19",
              name: "J84.800x005  非特异性间质性肺炎",
              ok: 1,
            },
            {
              id: "k20",
              name: "J84.800x006  呼吸性细支气管炎伴间质性肺病",
              ok: 1,
            },
            {
              id: "k21",
              name: "J84.800x007  急性间质性肺炎",
              ok: 1,
            },
            {
              id: "k22",
              name: "J84.800x008  肺淋巴管瘤病",
              ok: 1,
            },
            {
              id: "k23",
              name: "J84.801  脱屑性间质性肺炎",
              ok: 1,
            },
            {
              id: "k24",
              name: "J84.802  胆固醇肺炎",
              ok: 1,
            },
            {
              id: "k25",
              name: "J84.803  肺弥漫性间质病变",
              ok: 1,
            },
            {
              id: "k26",
              name: "J84.804  淋巴细胞性间质性肺炎",
              ok: 1,
            },
            {
              id: "k27",
              name: "J84.805  内源性脂质性肺炎",
              ok: 1,
            },
            {
              id: "k28",
              name: "J84.900  间质性肺病",
              ok: 1,
            },
          ],
        },
      },
    };
  },
  mounted() {
    this.name = this.$route.query.name;
  },
  methods: {
    to_up() {
      this.$router.push("/BKXT/add/addCard");
    },
    choose_change(item, index) {
      if (index == "慢性支气管炎") {
        var that = this;
        for (var i in that.info.慢性支气管炎.ICD10) {
          if (that.info.慢性支气管炎.ICD10[i].id == item.id) {
            if (that.info.慢性支气管炎.ICD10[i].ok == 3) {
              that.info.慢性支气管炎.ICD10[i].ok = 1;
              return;
            }
            that.info.慢性支气管炎.ICD10[i].ok += 1;
            return;
          }
          if (that.info.慢性支气管炎.医保ICD[i].id == item.id) {
            if (that.info.慢性支气管炎.医保ICD[i].ok == 3) {
              that.info.慢性支气管炎.医保ICD[i].ok = 1;
              return;
            }
            that.info.慢性支气管炎.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "慢性肺源性心脏病") {
        var that = this;
        for (var i in that.info.慢性肺源性心脏病.ICD10) {
          if (that.info.慢性肺源性心脏病.ICD10[i].id == item.id) {
            if (that.info.慢性肺源性心脏病.ICD10[i].ok == 3) {
              that.info.慢性肺源性心脏病.ICD10[i].ok = 1;
              return;
            }
            that.info.慢性肺源性心脏病.ICD10[i].ok += 1;
            return;
          }
          if (that.info.慢性肺源性心脏病.医保ICD[i].id == item.id) {
            if (that.info.慢性肺源性心脏病.医保ICD[i].ok == 3) {
              that.info.慢性肺源性心脏病.医保ICD[i].ok = 1;
              return;
            }
            that.info.慢性肺源性心脏病.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "肺气肿") {
        var that = this;
        for (var i in that.info.肺气肿.ICD10) {
          if (that.info.肺气肿.ICD10[i].id == item.id) {
            if (that.info.肺气肿.ICD10[i].ok == 3) {
              that.info.肺气肿.ICD10[i].ok = 1;
              return;
            }
            that.info.肺气肿.ICD10[i].ok += 1;
            return;
          }
          if (that.info.肺气肿.医保ICD[i].id == item.id) {
            if (that.info.肺气肿.医保ICD[i].ok == 3) {
              that.info.肺气肿.医保ICD[i].ok = 1;
              return;
            }
            that.info.肺气肿.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "慢性阻塞性肺疾病") {
        var that = this;
        for (var i in that.info.慢性阻塞性肺疾病.ICD10) {
          if (that.info.慢性阻塞性肺疾病.ICD10[i].id == item.id) {
            if (that.info.慢性阻塞性肺疾病.ICD10[i].ok == 3) {
              that.info.慢性阻塞性肺疾病.ICD10[i].ok = 1;
              return;
            }
            that.info.慢性阻塞性肺疾病.ICD10[i].ok += 1;
            return;
          }
          if (that.info.慢性阻塞性肺疾病.医保ICD[i].id == item.id) {
            if (that.info.慢性阻塞性肺疾病.医保ICD[i].ok == 3) {
              that.info.慢性阻塞性肺疾病.医保ICD[i].ok = 1;
              return;
            }
            that.info.慢性阻塞性肺疾病.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "哮喘") {
        var that = this;
        for (var i in that.info.哮喘.ICD10) {
          if (that.info.哮喘.ICD10[i].id == item.id) {
            if (that.info.哮喘.ICD10[i].ok == 3) {
              that.info.哮喘.ICD10[i].ok = 1;
              return;
            }
            that.info.哮喘.ICD10[i].ok += 1;
            return;
          }
          if (that.info.哮喘.医保ICD[i].id == item.id) {
            if (that.info.哮喘.医保ICD[i].ok == 3) {
              that.info.哮喘.医保ICD[i].ok = 1;
              return;
            }
            that.info.哮喘.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "支气管扩张症") {
        var that = this;
        for (var i in that.info.支气管扩张症.ICD10) {
          if (that.info.支气管扩张症.ICD10[i].id == item.id) {
            if (that.info.支气管扩张症.ICD10[i].ok == 3) {
              that.info.支气管扩张症.ICD10[i].ok = 1;
              return;
            }
            that.info.支气管扩张症.ICD10[i].ok += 1;
            return;
          }
          if (that.info.支气管扩张症.医保ICD[i].id == item.id) {
            if (that.info.支气管扩张症.医保ICD[i].ok == 3) {
              that.info.支气管扩张症.医保ICD[i].ok = 1;
              return;
            }
            that.info.支气管扩张症.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "尘肺") {
        var that = this;
        for (var i in that.info.尘肺.ICD10) {
          if (that.info.尘肺.ICD10[i].id == item.id) {
            if (that.info.尘肺.ICD10[i].ok == 3) {
              that.info.尘肺.ICD10[i].ok = 1;
              return;
            }
            that.info.尘肺.ICD10[i].ok += 1;
            return;
          }
          if (that.info.尘肺.医保ICD[i].id == item.id) {
            if (that.info.尘肺.医保ICD[i].ok == 3) {
              that.info.尘肺.医保ICD[i].ok = 1;
              return;
            }
            that.info.尘肺.医保ICD[i].ok += 1;
            return;
          }
        }
      }
      if (index == "间质性肺疾病") {
        var that = this;
        for (var i in that.info.间质性肺疾病.ICD10) {
          if (that.info.间质性肺疾病.ICD10[i].id == item.id) {
            if (that.info.间质性肺疾病.ICD10[i].ok == 3) {
              that.info.间质性肺疾病.ICD10[i].ok = 1;
              return;
            }
            that.info.间质性肺疾病.ICD10[i].ok += 1;
            return;
          }
          if (that.info.间质性肺疾病.医保ICD[i].id == item.id) {
            if (that.info.间质性肺疾病.医保ICD[i].ok == 3) {
              that.info.间质性肺疾病.医保ICD[i].ok = 1;
              return;
            }
            that.info.间质性肺疾病.医保ICD[i].ok += 1;
            return;
          }
        }
      }
    },
    btn_yes(){
        var init = JSON.stringify(this.info)
        var body = JSON.parse(init)
        body.hbzz = (body.hbzz).join(",")
        body.zdyj = (body.zdyj).join(",")
        body.慢性支气管炎.ICD10 = JSON.stringify(body.慢性支气管炎.ICD10)
        body.慢性支气管炎.医保ICD = JSON.stringify(body.慢性支气管炎.医保ICD)
        body.慢性肺源性心脏病.ICD10 = JSON.stringify(body.慢性肺源性心脏病.ICD10)
        body.慢性肺源性心脏病.医保ICD = JSON.stringify(body.慢性肺源性心脏病.医保ICD)
        body.肺气肿.ICD10 = JSON.stringify(body.肺气肿.ICD10)
        body.肺气肿.医保ICD = JSON.stringify(body.肺气肿.医保ICD)
        body.慢性阻塞性肺疾病.ICD10 = JSON.stringify(body.慢性阻塞性肺疾病.ICD10)
        body.慢性阻塞性肺疾病.医保ICD = JSON.stringify(body.慢性阻塞性肺疾病.医保ICD)
        body.哮喘.ICD10 = JSON.stringify(body.哮喘.ICD10)
        body.哮喘.医保ICD = JSON.stringify(body.哮喘.医保ICD)
        body.支气管扩张症.ICD10 = JSON.stringify(body.支气管扩张症.ICD10)
        body.支气管扩张症.医保ICD = JSON.stringify(body.支气管扩张症.医保ICD)
        body.尘肺.ICD10 = JSON.stringify(body.尘肺.ICD10)
        body.尘肺.医保ICD = JSON.stringify(body.尘肺.医保ICD)
        body.间质性肺疾病.ICD10 = JSON.stringify(body.间质性肺疾病.ICD10)
        body.间质性肺疾病.医保ICD = JSON.stringify(body.间质性肺疾病.医保ICD)
    }
  },
};
</script>
    
    <style scoped lang="scss">
.bk_info {
  background-color: #fff;
  height: calc(100vh - 46px);
  overflow: auto;
  .title {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    padding: 20px;
    border: 1px solid #ccc;
  }
}
.el-form-item {
  margin-bottom: 5px;
}
.ckxx {
  background-color: rgb(238, 238, 238);
  border: 1px solid #ccc;
  padding: 35px;
  border-radius: 5px;
}
._tag {
  padding: 15px 25px;
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 5px;
}
.choose {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  border-radius: 2px 6px;
  margin-right: 4px;
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  text-align: center;
  cursor: pointer;
}
.first {
  background: #1890ff;
  border: 1px solid #1890ff;
}
.ci {
  background: #ff7a45;
  border: 1px solid #ff7a45;
}
._table {
  display: inline-block;
  height: 300px;
  overflow: auto;
  th,
  td {
    padding: 5px 8px;
    width: 350px;
  }
}
.p_item {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>